
import Request from '../util/request'

export default class Express extends Request {

  // 页面统一请求
  getUni(data) {
    return this.request({
      url: '/h5/uni/express/index',
      data
    })
  }

  // ad
  getUniAd(data) {
    return this.request({
      url: '/h5/uni/express/ad',
      data
    })
  }

  // 加价设置
  getUniSet(data) {
    return this.request({
      url: '/h5/uni/express/set',
      data
    })
  }

  apiChannel(data) {
    return this.request({
      url: '/h5/uni/express-api/channel',
      data
    })
  }

  apiOrder(data) {
    return this.request({
      url: '/h5/uni/express-api/order',
      data
    })
  }

  apiCancel(data) {
    return this.request({
      url: '/h5/uni/express-api/cancel',
      data
    })
  }

  apiQuery(data) {
    return this.request({
      url: '/h5/uni/express-api/query',
      data
    })
  }

  // 地址解析
  addressParse(data) {
    return this.request({
      url: '/h5/uni/express-api/parse-address',
      data
    })
  }

  // 优惠券列表
  getTicket(data) {
    return this.request({
      url: '/h5/uni/express/get-ticket',
      data
    })
  }

}
